*This code is needed to reproduces the results reported in:
*Steiner, Nils D. and Matthias Mader. Intra-Party Heterogeneity in Policy Preferences and Its Effect on Issue Salience: Developing and Applying a Measure Based on Elite Survey Data. Party Politics.

*Read instructions in "1 main reproduction file.do"

gen party_id_CHES2010=.c				
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200701
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200702
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200703
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200704
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200705
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200706
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200707
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1200708
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1201001
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1201002
replace 	party_id_CHES2010=	.b	 if partyelec_id==	1201003
replace 	party_id_CHES2010=	3604	 if partyelec_id==	2200701
replace 	party_id_CHES2010=	3603	 if partyelec_id==	2200702
replace 	party_id_CHES2010=	3601	 if partyelec_id==	2200703
replace 	party_id_CHES2010=	3602	 if partyelec_id==	2200704
replace 	party_id_CHES2010=	3605	 if partyelec_id==	2200705
replace 	party_id_CHES2010=	3606	 if partyelec_id==	2200706
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200707
replace 	party_id_CHES2010=	3611	 if partyelec_id==	2200708
replace 	party_id_CHES2010=	3607	 if partyelec_id==	2200709
replace 	party_id_CHES2010=	3608	 if partyelec_id==	2200710
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200711
replace 	party_id_CHES2010=	3610	 if partyelec_id==	2200712
replace 	party_id_CHES2010=	3609	 if partyelec_id==	2200713
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200714
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200715
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200716
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2200720
replace 	party_id_CHES2010=	3603	 if partyelec_id==	2201101
replace 	party_id_CHES2010=	3604	 if partyelec_id==	2201102
replace 	party_id_CHES2010=	3602	 if partyelec_id==	2201103
replace 	party_id_CHES2010=	3601	 if partyelec_id==	2201104
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2201107
replace 	party_id_CHES2010=	3611	 if partyelec_id==	2201108
replace 	party_id_CHES2010=	3609	 if partyelec_id==	2201109
replace 	party_id_CHES2010=	3606	 if partyelec_id==	2201110
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2201111
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2201112
replace 	party_id_CHES2010=	3605	 if partyelec_id==	2201113
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2201115
replace 	party_id_CHES2010=	3608	 if partyelec_id==	2201116
replace 	party_id_CHES2010=	3610	 if partyelec_id==	2201118
replace 	party_id_CHES2010=	3612	 if partyelec_id==	2201119
replace 	party_id_CHES2010=	.a	 if partyelec_id==	2201120
replace 	party_id_CHES2010=	302	 if partyelec_id==	3200501
replace 	party_id_CHES2010=	999999	 if partyelec_id==	3200502
replace 	party_id_CHES2010=	303	 if partyelec_id==	3200504
replace 	party_id_CHES2010=	304	 if partyelec_id==	3200505
replace 	party_id_CHES2010=	306	 if partyelec_id==	3200506
replace 	party_id_CHES2010=	.a	 if partyelec_id==	3200507
replace 	party_id_CHES2010=	.a	 if partyelec_id==	3200520
replace 	party_id_CHES2010=	.a	 if partyelec_id==	3200597
replace 	party_id_CHES2010=	302	 if partyelec_id==	3200901
replace 	party_id_CHES2010=	999999	 if partyelec_id==	3200902
replace 	party_id_CHES2010=	303	 if partyelec_id==	3200904
replace 	party_id_CHES2010=	304	 if partyelec_id==	3200905
replace 	party_id_CHES2010=	306	 if partyelec_id==	3200906
replace 	party_id_CHES2010=	.a	 if partyelec_id==	3200920
replace 	party_id_CHES2010=	.a	 if partyelec_id==	3200997
replace 	party_id_CHES2010=	701	 if partyelec_id==	4200701
replace 	party_id_CHES2010=	702	 if partyelec_id==	4200702
replace 	party_id_CHES2010=	705	 if partyelec_id==	4200703
replace 	party_id_CHES2010=	703	 if partyelec_id==	4200704
replace 	party_id_CHES2010=	.a	 if partyelec_id==	4200705
replace 	party_id_CHES2010=	707	 if partyelec_id==	4200706
replace 	party_id_CHES2010=	.a	 if partyelec_id==	4200707
replace 	party_id_CHES2010=	402	 if partyelec_id==	5200701
replace 	party_id_CHES2010=	401	 if partyelec_id==	5200702
replace 	party_id_CHES2010=	402	 if partyelec_id==	5200901
replace 	party_id_CHES2010=	401	 if partyelec_id==	5200902
replace 	party_id_CHES2010=	402	 if partyelec_id==	5201201
replace 	party_id_CHES2010=	401	 if partyelec_id==	5201202
replace 	party_id_CHES2010=	403	 if partyelec_id==	5201203
replace 	party_id_CHES2010=	.a	 if partyelec_id==	5201204
replace 	party_id_CHES2010=	.a	 if partyelec_id==	5201205
replace 	party_id_CHES2010=	.a	 if partyelec_id==	5201206
replace 	party_id_CHES2010=	1402	 if partyelec_id==	6201101
replace 	party_id_CHES2010=	1401	 if partyelec_id==	6201102
replace 	party_id_CHES2010=	1405	 if partyelec_id==	6201103
replace 	party_id_CHES2010=	1403	 if partyelec_id==	6201104
replace 	party_id_CHES2010=	1404	 if partyelec_id==	6201105
replace 	party_id_CHES2010=	1408	 if partyelec_id==	6201106
replace 	party_id_CHES2010=	1409	 if partyelec_id==	6201107
replace 	party_id_CHES2010=	1406	 if partyelec_id==	6201108
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201109
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201110
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201111
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201112
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201113
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201114
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201115
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201116
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201117
replace 	party_id_CHES2010=	.a	 if partyelec_id==	6201120
replace 	party_id_CHES2010=	102	 if partyelec_id==	7200701
replace 	party_id_CHES2010=	106	 if partyelec_id==	7200702
replace 	party_id_CHES2010=	108	 if partyelec_id==	7200703
replace 	party_id_CHES2010=	104	 if partyelec_id==	7200704
replace 	party_id_CHES2010=	115	 if partyelec_id==	7200705
replace 	party_id_CHES2010=	109	 if partyelec_id==	7200711
replace 	party_id_CHES2010=	110	 if partyelec_id==	7200712
replace 	party_id_CHES2010=	103	 if partyelec_id==	7200713
replace 	party_id_CHES2010=	107	 if partyelec_id==	7200715
replace 	party_id_CHES2010=	112	 if partyelec_id==	7200716
replace 	party_id_CHES2010=	105	 if partyelec_id==	7200717
replace 	party_id_CHES2010=	117	 if partyelec_id==	7200718
replace 	party_id_CHES2010=	102	 if partyelec_id==	7201001
replace 	party_id_CHES2010=	106	 if partyelec_id==	7201002
replace 	party_id_CHES2010=	108	 if partyelec_id==	7201003
replace 	party_id_CHES2010=	104	 if partyelec_id==	7201004
replace 	party_id_CHES2010=	109	 if partyelec_id==	7201011
replace 	party_id_CHES2010=	110	 if partyelec_id==	7201012
replace 	party_id_CHES2010=	103	 if partyelec_id==	7201013
replace 	party_id_CHES2010=	107	 if partyelec_id==	7201015
replace 	party_id_CHES2010=	112	 if partyelec_id==	7201016
replace 	party_id_CHES2010=	105	 if partyelec_id==	7201017
replace 	party_id_CHES2010=	117	 if partyelec_id==	7201018
replace 	party_id_CHES2010=	.a	 if partyelec_id==	7201019
replace 	party_id_CHES2010=	1001	 if partyelec_id==	8200601
replace 	party_id_CHES2010=	1002	 if partyelec_id==	8200602
replace 	party_id_CHES2010=	1014	 if partyelec_id==	8200603
replace 	party_id_CHES2010=	1003	 if partyelec_id==	8200604
replace 	party_id_CHES2010=	1005	 if partyelec_id==	8200606
replace 	party_id_CHES2010=	1016	 if partyelec_id==	8200607
replace 	party_id_CHES2010=	1004	 if partyelec_id==	8200608
replace 	party_id_CHES2010=	1019	 if partyelec_id==	8200609
replace 	party_id_CHES2010=	1018	 if partyelec_id==	8200610
replace 	party_id_CHES2010=	1208	 if partyelec_id==	10200901
replace 	party_id_CHES2010=	1202	 if partyelec_id==	10200902
replace 	party_id_CHES2010=	1201	 if partyelec_id==	10200903
replace 	party_id_CHES2010=	1206	 if partyelec_id==	10200904
replace 	party_id_CHES2010=	1205	 if partyelec_id==	10200905
replace 	party_id_CHES2010=	1208	 if partyelec_id==	10201101
replace 	party_id_CHES2010=	1202	 if partyelec_id==	10201102
replace 	party_id_CHES2010=	1201	 if partyelec_id==	10201103
replace 	party_id_CHES2010=	1206	 if partyelec_id==	10201105
replace 	party_id_CHES2010=	1205	 if partyelec_id==	10201106
replace 	party_id_CHES2010=	2202	 if partyelec_id==	11201102
replace 	party_id_CHES2010=	2203	 if partyelec_id==	11201103
replace 	party_id_CHES2010=	2206	 if partyelec_id==	11201104
replace 	party_id_CHES2010=	.a	 if partyelec_id==	11201105
replace 	party_id_CHES2010=	2207	 if partyelec_id==	11201106
replace 	party_id_CHES2010=	2201	 if partyelec_id==	11201107
replace 	party_id_CHES2010=	2204	 if partyelec_id==	11201108
replace 	party_id_CHES2010=	.a	 if partyelec_id==	11201110
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200901
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200902
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200903
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200904
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200905
replace 	party_id_CHES2010=	.b	 if partyelec_id==	12200906
replace 	party_id_CHES2010=	2302	 if partyelec_id==	13201001
replace 	party_id_CHES2010=	2307	 if partyelec_id==	13201002
replace 	party_id_CHES2010=	2301	 if partyelec_id==	13201003
replace 	party_id_CHES2010=	2308	 if partyelec_id==	13201004
replace 	party_id_CHES2010=	2309	 if partyelec_id==	13201005
replace 	party_id_CHES2010=	.a	 if partyelec_id==	13201020
replace 	party_id_CHES2010=	.a	 if partyelec_id==	13201097
replace 	party_id_CHES2010=	1301	 if partyelec_id==	14200801
replace 	party_id_CHES2010=	1302	 if partyelec_id==	14200802
replace 	party_id_CHES2010=	1304	 if partyelec_id==	14200803
replace 	party_id_CHES2010=	1303	 if partyelec_id==	14200804
replace 	party_id_CHES2010=	1307	 if partyelec_id==	14200805
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200806
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200807
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200808
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200809
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200810
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200811
replace 	party_id_CHES2010=	.a	 if partyelec_id==	14200814
replace 	party_id_CHES2010=	1603	 if partyelec_id==	15201001
replace 	party_id_CHES2010=	.a	 if partyelec_id==	15201002
replace 	party_id_CHES2010=	1604	 if partyelec_id==	15201003
replace 	party_id_CHES2010=	1606	 if partyelec_id==	15201004
replace 	party_id_CHES2010=	1607	 if partyelec_id==	15201005
replace 	party_id_CHES2010=	1605	 if partyelec_id==	15201006
replace 	party_id_CHES2010=	1602	 if partyelec_id==	15201007
replace 	party_id_CHES2010=	1610	 if partyelec_id==	15201008
replace 	party_id_CHES2010=	1601	 if partyelec_id==	15201009
replace 	party_id_CHES2010=	213	 if partyelec_id==	16201101
replace 	party_id_CHES2010=	206	 if partyelec_id==	16201102
replace 	party_id_CHES2010=	201	 if partyelec_id==	16201103
replace 	party_id_CHES2010=	202	 if partyelec_id==	16201104
replace 	party_id_CHES2010=	.a	 if partyelec_id==	16201105
replace 	party_id_CHES2010=	218	 if partyelec_id==	16201106
replace 	party_id_CHES2010=	211	 if partyelec_id==	16201107
replace 	party_id_CHES2010=	203	 if partyelec_id==	16201108
replace 	party_id_CHES2010=	215	 if partyelec_id==	16201109
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201204
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201205
replace 	party_id_CHES2010=	2704	 if partyelec_id==	17201206
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201207
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201208
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201209
replace 	party_id_CHES2010=	2706	 if partyelec_id==	17201210
replace 	party_id_CHES2010=	.a	 if partyelec_id==	17201211
replace 	party_id_CHES2010=	2101	 if partyelec_id==	18200601
replace 	party_id_CHES2010=	2104	 if partyelec_id==	18200602
replace 	party_id_CHES2010=	2103	 if partyelec_id==	18200603
replace 	party_id_CHES2010=	2102	 if partyelec_id==	18200604
replace 	party_id_CHES2010=	2107	 if partyelec_id==	18200605
replace 	party_id_CHES2010=	3504	 if partyelec_id==	19200901
replace 	party_id_CHES2010=	3501	 if partyelec_id==	19200902
replace 	party_id_CHES2010=	3505	 if partyelec_id==	19200903
replace 	party_id_CHES2010=	3506	 if partyelec_id==	19200904
replace 	party_id_CHES2010=	3507	 if partyelec_id==	19200905
replace 	party_id_CHES2010=	3503	 if partyelec_id==	19200906
replace 	party_id_CHES2010=	3502	 if partyelec_id==	19200907
replace 	party_id_CHES2010=	.a	 if partyelec_id==	21201301
replace 	party_id_CHES2010=	.a	 if partyelec_id==	21201302
replace 	party_id_CHES2010=	815	 if partyelec_id==	21201303
replace 	party_id_CHES2010=	811	 if partyelec_id==	21201304
replace 	party_id_CHES2010=	.a	 if partyelec_id==	21201305
replace 	party_id_CHES2010=	837	 if partyelec_id==	21201306
replace 	party_id_CHES2010=	803	 if partyelec_id==	21201307
replace 	party_id_CHES2010=	.a	 if partyelec_id==	21201308
replace 	party_id_CHES2010=	838	 if partyelec_id==	21201309
replace 	party_id_CHES2010=	827	 if partyelec_id==	21201310
replace 	party_id_CHES2010=	814	 if partyelec_id==	21201311
replace 	party_id_CHES2010=	.b	 if partyelec_id==	22201301
replace 	party_id_CHES2010=	.b	 if partyelec_id==	22201302
replace 	party_id_CHES2010=	.b	 if partyelec_id==	22201303
replace 	party_id_CHES2010=	.b	 if partyelec_id==	22201320
replace 	party_id_CHES2010=	1102	 if partyelec_id==	23201001
replace 	party_id_CHES2010=	1101	 if partyelec_id==	23201002
replace 	party_id_CHES2010=	1104	 if partyelec_id==	23201003
replace 	party_id_CHES2010=	1108	 if partyelec_id==	23201004
replace 	party_id_CHES2010=	1107	 if partyelec_id==	23201005
replace 	party_id_CHES2010=	1105	 if partyelec_id==	23201006
replace 	party_id_CHES2010=	1106	 if partyelec_id==	23201007
replace 	party_id_CHES2010=	1109	 if partyelec_id==	23201008
replace 	party_id_CHES2010=	.a	 if partyelec_id==	23201009
replace 	party_id_CHES2010=	.a	 if partyelec_id==	23201010
replace 	party_id_CHES2010=	.a	 if partyelec_id==	23201011
replace 	party_id_CHES2010=	.a	 if partyelec_id==	23201020
replace 	party_id_CHES2010=	.a	 if partyelec_id==	23201097

